package net.wanho.study.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Author：汤小洋
 * Date：2023-07-03 9:46
 * Description：<描述>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Dept implements Serializable {
    // id,name
    private Integer id;
    private String name;
    private List<Emp> emps = new ArrayList<>(); // 对象集合

    public Dept(String name) {
        this.name = name;
    }
}
